package com.szdvte.news.service.impl;

import java.util.List;

import com.szdvte.news.bean.NewsType;
import com.szdvte.news.dao.INewsTypeDao;
import com.szdvte.news.service.INewsTypeService;

public class NewsTypeServiceImpl implements INewsTypeService {
	private INewsTypeDao newsTypeDao;
	@Override
	public List<NewsType> select() {
		return newsTypeDao.select();
	}

	@Override
	public boolean add(NewsType newsType) {
		return newsTypeDao.add(newsType);
	}

	@Override
	public boolean delete(NewsType newsType) {
		return newsTypeDao.delete(newsType);
	}

	@Override
	public boolean update(NewsType newsType) {
		return newsTypeDao.update(newsType);
	}

	public INewsTypeDao getNewsTypeDao() {
		return newsTypeDao;
	}

	public void setNewsTypeDao(INewsTypeDao newsTypeDao) {
		this.newsTypeDao = newsTypeDao;
	}

	@Override
	public NewsType load(NewsType newsType) {
		return newsTypeDao.load(newsType);
	}

}
